package com.hualude.roadsign.dto;

import com.hualude.roadsign.model.MaintenanceEntity;

/**
 * Created by shao-yikun on 2017/4/7.
 */
public class SignfaultDto {
    private Integer signFaultId;
    private Integer equipmentType;
    private Integer signFaultLevel;
    private String signFaultPic;
    private Integer signFaultType;
    private String signFaultReason;
    private String signFaultDescription;
    private String signFaultTime;
    private Integer companyCheck;
    private Integer mainCheck;
    private String signFaultCheckBack;
    private String signCheckTime;
    private Integer companyUserId;              //企业负责人Id
    private Integer mainUserId;                 //主管Id
    private Integer roadSignId;                 //路标标号
    private Integer signFaultPeopleId;          //报告人
    private String signFaultPeopleMobile;
    private String companyUserName;             //企业负责人名称
    private String mainCheckName;               //单位负责人名称
    private String signFaultPeopleName;         //报告人姓名
    private String roadSignPic;                 //外键roadSignId对应表的标牌图片

    private String UserName;                 //采集员
    private Integer orgId;                   //维护公司Id
    private String orgName;                  //维护公司name
    private Integer mainOrgId;               //主管单位Id
    private String mainOrgName;              //主管单位名称
    private Integer roadPoleId;              //外键roadSignId对应的标杆Id
    private String longitude;                //外键roadSignId对应的经度
    private String latitude;                 //外键roadSignId对应的纬度
    private String province;                 //外键roadSignId对应的省
    private String city;                     //外键roadSignId对应的市
    private String area;                     //外键roadSignId对应的区
    private String roadName;                 //外键roadSignId对应的路名
    private String startRoad;                //外键roadSignId对应的起始路名
    private String endRoad;                  //外键roadSignId对应的结束路名
    private Integer roadPoleShape;           //标杆形状
    private String roadPoleSize;             //标杆尺寸
    private String roadPolePic;              //标杆图片
    private String maintenanceCreateTime;    //故障上报通过时间
    private String maintenancePeopleName;    //维护人姓名
    private Integer maintenancePeopleId;     //维护人Id
    private Double repairAmount;

    public SignfaultDto() {
    }

    /**
     * @Description: 添加维护记录
     * @Author: xu-jiaHui
     * @Date: 2017/3/10 13:45
     */
    public SignfaultDto(Integer signFaultLevel, String signFaultPic, Integer signFaultType, String signFaultReason, String signFaultTime, Integer companyCheck, Integer mainCheck, Integer companyUserId, Integer mainUserId, Integer roadSignId, Integer orgId, Integer mainOrgId) {
        this.signFaultLevel = signFaultLevel;
        this.signFaultPic = signFaultPic;
        this.signFaultType = signFaultType;
        this.signFaultReason = signFaultReason;
        this.signFaultTime = signFaultTime;
        this.companyCheck = companyCheck;
        this.mainCheck = mainCheck;
        this.companyUserId = companyUserId;
        this.mainUserId = mainUserId;
        this.roadSignId = roadSignId;
        this.orgId = orgId;
        this.mainOrgId = mainOrgId;
    }

    /**
     * @Description: 用于DT显示和编辑
     * @Author: xu-jiaHui
     * @Date: 2017/3/10 13:43
     */
    public SignfaultDto(Integer signFaultLevel, String signFaultPic, Integer signFaultType, String signFaultReason, String signFaultDescription, String signFaultTime, Integer companyCheck, Integer mainCheck, String signFaultCheckBack, Integer mainUserId, String companyUserName, Integer companyUserId, String mainCheckName, Integer roadSignId, String signFaultPeopleName, Integer signFaultPeopleId, Integer orgId, Integer mainOrgId) {
        this.signFaultLevel = signFaultLevel;
        this.signFaultPic = signFaultPic;
        this.signFaultType = signFaultType;
        this.signFaultReason = signFaultReason;
        this.signFaultDescription = signFaultDescription;
        this.signFaultTime = signFaultTime;
        this.companyCheck = companyCheck;
        this.mainCheck = mainCheck;
        this.signFaultCheckBack = signFaultCheckBack;
        this.companyUserName = companyUserName;
        this.mainCheckName = mainCheckName;
        this.mainUserId = mainUserId;
        this.companyUserId = companyUserId;
        this.roadSignId = roadSignId;
        this.signFaultPeopleName = signFaultPeopleName;
        this.signFaultPeopleId = signFaultPeopleId;
        this.orgId = orgId;
        this.mainOrgId = mainOrgId;
    }

    public SignfaultDto(String signFaultReason, String signFaultDescription) {
        this.signFaultReason = signFaultReason;
        this.signFaultDescription = signFaultDescription;
    }


    /**
     * @Description: 标牌故障统计显示4DT
     * @Author: lin-anqian
     * @Date: 2017/5/6 19:55
     */
    public SignfaultDto(Integer signFaultId, Integer roadSignId, String signFaultPic,
                        Integer signFaultLevel, Integer companyCheck, Integer mainCheck,
                        String signFaultTime, String signCheckTime, String orgName, Integer RoadPoleId, String roadName,
                        String endRoad, String startRoad, String area, String city, String province, Integer roadPoleShape,
                        String UserName, String roadPoleSize, String roadPolePic, String roadSignPic) {
        this.signFaultId = signFaultId;
        this.signFaultLevel = signFaultLevel;
        this.signFaultPic = signFaultPic;
        this.signFaultTime = signFaultTime;
        this.companyCheck = companyCheck;
        this.mainCheck = mainCheck;
        this.signCheckTime = signCheckTime;
        this.roadSignId = roadSignId;
        this.orgName = orgName;
        this.roadPoleId = RoadPoleId;
        this.roadName = roadName;
        this.endRoad = endRoad;
        this.startRoad = startRoad;
        this.area = area;
        this.city = city;
        this.province = province;
        this.roadPoleShape = roadPoleShape;
        this.UserName = UserName;
        this.roadPoleSize = roadPoleSize;
        this.roadPolePic = roadPolePic;
        this.roadSignPic = roadSignPic;
    }

    public SignfaultDto(Integer signFaultId, Integer roadSignId, Integer signFaultLevel, String signFaultPic, Integer signFaultType, String signFaultReason, String signFaultTime, Integer companyUserId, Integer mainUserId,String signFaultCheckBack,Double repairAmount) {
        this.signFaultId = signFaultId;
        this.roadSignId = roadSignId;
        this.signFaultLevel = signFaultLevel;
        this.signFaultPic = signFaultPic;
        this.signFaultType = signFaultType;
        this.signFaultReason = signFaultReason;
        this.signFaultTime = signFaultTime;
        this.companyUserId = companyUserId;
        this.mainUserId = mainUserId;
        this.signFaultCheckBack = signFaultCheckBack;
        this.repairAmount = repairAmount;
    }

    public SignfaultDto(Integer companyCheck,Integer mainCheck){
        this.companyCheck = companyCheck;
        this.mainCheck =mainCheck;
    }

    public String getMaintenanceCreateTime() {
        return maintenanceCreateTime;
    }

    public void setMaintenanceCreateTime(String maintenanceCreateTime) {
        this.maintenanceCreateTime = maintenanceCreateTime;
    }

    public String getSignFaultPeopleMobile() {
        return signFaultPeopleMobile;
    }

    public void setSignFaultPeopleMobile(String signFaultPeopleMobile) {
        this.signFaultPeopleMobile = signFaultPeopleMobile;
    }

    public String getRoadPoleSize() {
        return roadPoleSize;
    }

    public void setRoadPoleSize(String roadPoleSize) {
        this.roadPoleSize = roadPoleSize;
    }

    public Integer getEquipmentType() {
        return equipmentType;
    }

    public void setEquipmentType(Integer equipmentType) {
        this.equipmentType = equipmentType;
    }

    public Integer getMaintenancePeopleId() {
        return maintenancePeopleId;
    }

    public void setMaintenancePeopleId(Integer maintenancePeopleId) {
        this.maintenancePeopleId = maintenancePeopleId;
    }

    public String getSignFaultPeopleName() {
        return signFaultPeopleName;
    }

    public void setSignFaultPeopleName(String signFaultPeopleName) {
        this.signFaultPeopleName = signFaultPeopleName;
    }

    public String getCompanyUserName() {
        return companyUserName;
    }

    public void setCompanyUserName(String companyUserName) {
        this.companyUserName = companyUserName;
    }

    public String getMainCheckName() {
        return mainCheckName;
    }

    public void setMainCheckName(String mainCheckName) {
        this.mainCheckName = mainCheckName;
    }

    public Integer getSignFaultId() {
        return signFaultId;
    }

    public void setSignFaultId(Integer signFaultId) {
        this.signFaultId = signFaultId;
    }

    public Integer getSignFaultLevel() {
        return signFaultLevel;
    }

    public void setSignFaultLevel(Integer signFaultLevel) {
        this.signFaultLevel = signFaultLevel;
    }

    public Integer getRoadPoleShape() {
        return roadPoleShape;
    }

    public void setRoadPoleShape(Integer roadPoleShape) {
        this.roadPoleShape = roadPoleShape;
    }

    public String getUserName() {
        return UserName;
    }

    public String getRoadPolePic() {
        return roadPolePic;
    }

    public void setRoadPolePic(String roadPolePic) {
        this.roadPolePic = roadPolePic;
    }

    public void setUserName(String userName) {
        UserName = userName;
    }

    public String getSignFaultPic() {
        return signFaultPic;
    }

    public void setSignFaultPic(String signFaultPic) {
        this.signFaultPic = signFaultPic;
    }

    public Integer getSignFaultType() {
        return signFaultType;
    }

    public void setSignFaultType(Integer signFaultType) {
        this.signFaultType = signFaultType;
    }

    public String getSignFaultReason() {
        return signFaultReason;
    }

    public void setSignFaultReason(String signFaultReason) {
        this.signFaultReason = signFaultReason;
    }

    public String getSignFaultDescription() {
        return signFaultDescription;
    }

    public void setSignFaultDescription(String signFaultDescription) {
        this.signFaultDescription = signFaultDescription;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getSignFaultTime() {
        return signFaultTime;
    }

    public void setSignFaultTime(String signFaultTime) {
        this.signFaultTime = signFaultTime;
    }

    public Integer getCompanyCheck() {
        return companyCheck;
    }

    public void setCompanyCheck(Integer companyCheck) {
        this.companyCheck = companyCheck;
    }

    public Integer getMainCheck() {
        return mainCheck;
    }

    public void setMainCheck(Integer mainCheck) {
        this.mainCheck = mainCheck;
    }

    public String getSignFaultCheckBack() {
        return signFaultCheckBack;
    }

    public void setSignFaultCheckBack(String signFaultCheckBack) {
        this.signFaultCheckBack = signFaultCheckBack;
    }

    public Integer getCompanyUserId() {
        return companyUserId;
    }

    public void setCompanyUserId(Integer companyUserId) {
        this.companyUserId = companyUserId;
    }

    public Integer getMainUserId() {
        return mainUserId;
    }

    public void setMainUserId(Integer mainUserId) {
        this.mainUserId = mainUserId;
    }

    public Integer getRoadSignId() {
        return roadSignId;
    }

    public void setRoadSignId(Integer roadSignId) {
        this.roadSignId = roadSignId;
    }

    public Integer getSignFaultPeopleId() {
        return signFaultPeopleId;
    }

    public void setSignFaultPeopleId(Integer signFaultPeopleId) {
        this.signFaultPeopleId = signFaultPeopleId;
    }

    public String getRoadSignPic() {
        return roadSignPic;
    }

    public void setRoadSignPic(String roadSignPic) {
        this.roadSignPic = roadSignPic;
    }

    public Integer getRoadPoleId() {
        return roadPoleId;
    }

    public void setRoadPoleId(Integer roadPoleId) {
        this.roadPoleId = roadPoleId;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getRoadName() {
        return roadName;
    }

    public void setRoadName(String roadName) {
        this.roadName = roadName;
    }

    public String getStartRoad() {
        return startRoad;
    }

    public void setStartRoad(String startRoad) {
        this.startRoad = startRoad;
    }

    public String getEndRoad() {
        return endRoad;
    }

    public void setEndRoad(String endRoad) {
        this.endRoad = endRoad;
    }


    public String getMaintenancePeopleName() {
        return maintenancePeopleName;
    }

    public void setMaintenancePeopleName(String maintenancePeopleName) {
        this.maintenancePeopleName = maintenancePeopleName;
    }

    public String getSignCheckTime() {
        return signCheckTime;
    }

    public void setSignCheckTime(String signCheckTime) {
        this.signCheckTime = signCheckTime;
    }

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    public Integer getMainOrgId() {
        return mainOrgId;
    }

    public void setMainOrgId(Integer mainOrgId) {
        this.mainOrgId = mainOrgId;
    }

    public Double getRepairAmount() {
        return repairAmount;
    }

    public void setRepairAmount(Double repairAmount) {
        this.repairAmount = repairAmount;
    }

    public String getMainOrgName() {
        return mainOrgName;
    }

    public void setMainOrgName(String mainOrgName) {
        this.mainOrgName = mainOrgName;
    }

    /**
     * @Description: 添加维护记录的toBean
     * @Author: xu-jiaHui
     * @Date: 2017/3/9 16:27
     */

    public MaintenanceEntity toBean() {
        MaintenanceEntity dtMainTenanceDto = new MaintenanceEntity();

        dtMainTenanceDto.setRoadSignId(roadSignId);
        dtMainTenanceDto.setSignFaultId(signFaultId);
        dtMainTenanceDto.setMaintenanceReason(signFaultReason);
        dtMainTenanceDto.setMaintenanceStatus(0);
        dtMainTenanceDto.setMaintenanceLevel(signFaultLevel);
        dtMainTenanceDto.setMaintenanceType(signFaultType);
        dtMainTenanceDto.setSignFaultPic(signFaultPic);
        dtMainTenanceDto.setMaintenanceCreateTime(signFaultTime);
        dtMainTenanceDto.setMaintenanceFeedback(signFaultCheckBack);
        dtMainTenanceDto.setRepairAmount(repairAmount);
        return dtMainTenanceDto;
    }
}
